package com.industry.examinaion.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.industry.system.dal.dataobject.BaseEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 答题表
 * </p>
 *
 * @author nbZhuoZh
 * @since 2025-07-01
 */
@Getter
@Setter
@TableName("examinaion_paper_answer")
public class ExaminaionPaperAnswer extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 部门ID；空则为公共客户数据
     */
    private String deptId;

    /**
     * 试卷ID
     */
    private Long examinaionPaperId;

    /**
     * 学生答案（json 存答案对应多个 试卷试题数据）
     */
    private String answer;

    /**
     * 得分
     */
    private BigDecimal score;

    /**
     * 批改人ID
     */
    private String reviewerId;

    /**
     * 批改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    /**
     * 批注
     */
    private String comment;

    /**
     * 删除标记
     */
    @TableLogic
    private String delFlag;

    /**
     * 创建部门
     */
    private String createDept;
}
